package com.demo.exception;

/**
 * Author:  Hardy
 * Date:    2018/7/18 20:05
 * Description:
 **/
public enum SrvErrCode {

    PARAM_ERR(4000, "参数错误"),
    SYSTEM_ERR(5000, "系统错误");

    private final int code;
    private final String message;

    SrvErrCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int code() {
        return code;
    }

    public String message() {
        return message;
    }
}
